#include <REGX52.H>
#include <INTRINS.H>

void Delay1ms(unsigned int xms)		//@11.0592MHz
{
	unsigned char i, j;
	while(xms)
	{
		_nop_();
		i = 2;
		j = 199;
		do
		{
			while (--j);
		} while (--i);
		xms--;
	}
	
}


int main()
{
	int i = 0;

	while(1)
	{
		P2 = 0xFE;
		for(i=0;i<8;i++)
		{
			P2&=~(1<<i);
			
			Delay1ms(100);
		}
	}
	
}